package com.example.love.controller.User;

import com.example.love.service.User.impl.UserService;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class UserController {
    @Resource
    private UserService userService;
       @RequestMapping(value = "/insertUser",method = RequestMethod.GET)
       public Integer insettUser(String name,Integer age){
        int i = 1/age;
           return userService.insettUser(name,age);
       }




}
